home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 12⁄22⁄89 / 0252-RE Scrollers⁄clippin-Dec89 < prev    next >
Encoding:
Text File  |  1989-12-22  |  2.2 KB  |  58 lines  |  [TEXT/GEOL]

  1. Item    5043604                         21-Dec-89        22:15
  2.  
  3. From:   MADA2                           MacApp Dev Assoc, Curtis Faith
  4.  
  5. To:     ANIMATRIXDEV                    Animatrix, David Goldman,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MacApp Technical
  8.  
  9. Sub:    RE Scrollers/clipping
  10.  
  11. Steven,
  12.  
  13. I recently had to implement a similar concept to your dragging grids for the
  14. AppleLink archiving application I am putting the finishing touches on.
  15.  
  16. What I had was 2 side by side TextListViews.  One the left is a list of new
  17. links on the right is a list of recent Threads.  You drag the links from the
  18. left to the right and the right TextListView highlights where they will be
  19. placed.
  20.  
  21. There were several problems:
  22.  
  23. 1) TrackFeedBack is clipped to the view that originates it by default.  I got
  24. around this by having the container (Window?) view create the tracking command
  25. and by manipulating the TextListViews from the outside.  Thus the container
  26. does not have to worry about clipping as it contains both TextListViews.
  27.  
  28. 2) The TextListViews are each contained in a Scroller thus each mouse
  29. coordinate must be converted from the container to the TextListViews coordinate
  30. system via 2 calls to SuperToLocal:
  31.  
  32. scroller1.SuperToLocal;
  33. textListView1.SuperToLocal;
  34.  
  35. for things like highlighting cells etc.
  36.  
  37. 3) I needed to change focus often.  The debugger is very kind about reminding
  38. you of this need.
  39.  
  40. 4) The highlighting was very tricky.  I had to read the source for GridViews
  41. over several times before I figured out exactly what I needed to do. This may
  42. not be a problem for you depending on what you want to do.
  43.  
  44. 5) It became very complicated and is on my list for reassesment and
  45. beautification.  It was the single most complicated aspect of the application.
  46. Looking back on it, I feel that it could be done much more simply.  (I don't
  47. know exactly what that means as it is only a feeling)
  48.  
  49. I am not sure if there is a better way, but I know that this way works.  It
  50. seemed at the time (even more so now) to be a great kludge but I have not
  51. thought it through enough to be able to offer any better solution.
  52.  
  53. I did want to reply since it appeared as though noone else had as of yet.
  54.  
  55. - Curtis
  56.  
  57.  
  58.